| Conditions | 3 |
| Total Lines | 14 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import Xdebug from '../extensions/php/xdebug' |
||
| 48 | disable = async (xdebug: Xdebug): Promise<boolean> => { |
||
| 49 | if (!(await xdebug.isInstalled())) { |
||
| 50 | console.log('Extension xdebug is not installed. We do not need to disable it then...') |
||
| 51 | return false |
||
| 52 | } |
||
| 53 | |||
| 54 | if (!(await xdebug.isEnabled())) { |
||
| 55 | console.log('Extension xdebug is not enabled.') |
||
| 56 | return false |
||
| 57 | } |
||
| 58 | |||
| 59 | await xdebug.disable() |
||
| 60 | |||
| 61 | return true |
||
| 62 | } |
||
| 66 | export default XdebugController |